 /* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/


#import <Foundation/Foundation.h>
#import <JDCloudOCSDKAms/AmsModel.h>

@implementation StreamInputData
-(id) initWithDownTime:(NSString*) downTime
      mediaType:(NSString*)mediaType
      bitrateFact:(NSString*)bitrateFact
      fpsDatum:(NSString*)fpsDatum
      fpsFact:(NSString*)fpsFact
      bitrateDatum:(NSString*)bitrateDatum
      tsDeltaDatum:(NSString*)tsDeltaDatum
      tsDeltaFact:(NSString*)tsDeltaFact { 
     self.downTime = downTime;               
     self.mediaType = mediaType;               
     self.bitrateFact = bitrateFact;               
     self.fpsDatum = fpsDatum;               
     self.fpsFact = fpsFact;               
     self.bitrateDatum = bitrateDatum;               
     self.tsDeltaDatum = tsDeltaDatum;               
     self.tsDeltaFact = tsDeltaFact;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self downTime])
    {
        [result setValue:[self downTime] forKey:@"downTime"];
    }
    if([self mediaType])
    {
        [result setValue:[self mediaType] forKey:@"mediaType"];
    }
    if([self bitrateFact])
    {
        [result setValue:[self bitrateFact] forKey:@"bitrateFact"];
    }
    if([self fpsDatum])
    {
        [result setValue:[self fpsDatum] forKey:@"fpsDatum"];
    }
    if([self fpsFact])
    {
        [result setValue:[self fpsFact] forKey:@"fpsFact"];
    }
    if([self bitrateDatum])
    {
        [result setValue:[self bitrateDatum] forKey:@"bitrateDatum"];
    }
    if([self tsDeltaDatum])
    {
        [result setValue:[self tsDeltaDatum] forKey:@"tsDeltaDatum"];
    }
    if([self tsDeltaFact])
    {
        [result setValue:[self tsDeltaFact] forKey:@"tsDeltaFact"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.downTime = [dictionary objectForKey:@"downTime"];
    self.mediaType = [dictionary objectForKey:@"mediaType"];
    self.bitrateFact = [dictionary objectForKey:@"bitrateFact"];
    self.fpsDatum = [dictionary objectForKey:@"fpsDatum"];
    self.fpsFact = [dictionary objectForKey:@"fpsFact"];
    self.bitrateDatum = [dictionary objectForKey:@"bitrateDatum"];
    self.tsDeltaDatum = [dictionary objectForKey:@"tsDeltaDatum"];
    self.tsDeltaFact = [dictionary objectForKey:@"tsDeltaFact"];
    return self;
}
 @end
 
 


